package com.hmall.fegin.clients;

import com.hmall.common.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * TODO
 *
 * @Author anjing
 * @Date 2024/11/15 20:10
 */
@FeignClient("userservice")
public interface UserClient {

    @GetMapping("/address/{addressId}")
    Address getById(@PathVariable Long addressId);

}
